<template>
  <div>
    <el-button icon="el-icon-edit" size="mini" type="success" @click="to"></el-button>
    <eForm ref="form" :sup_this="sup_this" :is-add="false" :dic_list="dic_list"/>
  </div>
</template>
<script>
import eForm from './form'
export default {
  components: { eForm },
  props: {
    data: {
      type: Object,
      required: true
    },
    sup_this: {
      type: Object,
      required: true
    },
    dic_list: {
      type: Object,
      required: true
    }
  },
  methods: {
    to() {
      const _this = this.$refs.form
      _this.form = {
        id: this.data.id,
        template_name: this.data.template_name,
        template_type: this.data.template_type,
        template: this.data.template,
        template_illustrate: this.data.template_illustrate,
        sign_name: this.data.sign_name,
        send_type: this.data.send_type,
        status: this.data.status,
        re_count: this.data.re_count,
        send_time: this.data.send_time,
        object_type: this.data.object_type }
      _this.dialog = true
    }
  }
}
</script>

<style scoped>
  div{
    display: inline-block;
    margin-right: 3px;
  }
</style>
